using System;
using Gtk;

using System.Threading;
namespace Conusic
{

	public partial class MainWindow : Gtk.Window
	{
		public MainWindow () : base(Gtk.WindowType.Toplevel)
		{
			Build ();
		}

		protected void OnDeleteEvent (object sender, DeleteEventArgs a)
		{
			Application.Quit ();
			a.RetVal = true;
		}
		protected virtual void OnButton4ButtonPressEvent (object o, Gtk.ButtonPressEventArgs args)
		{

			
		}
		
		protected virtual void OnButton4Clicked (object sender, System.EventArgs e)
		{
//			var k = new Thread (FriendsClass.UpdateFriends);
//			k.Start ();
//			k.Join ();
//			
//			foreach (Friend oneFriend in FriendsClass.listFriends) {
//				textview2.Buffer.Text += oneFriend.Name + "\n";
//			}
		}
		
		protected virtual void OnButton3Clicked (object sender, System.EventArgs e)
		{
			//textview2.Buffer.Text = "update";
		}
		
		
		
		
	}
	
}
